<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String path = request.getContextPath() ;%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> 
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<%@ taglib uri="/WEB-INF/tld/sys.tld" prefix="sys" %>
<!DOCTYPE html>
<html lang="zh-CN" >
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>信审审核预约附加信息</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
<div class="Wrapper">
	<form id="formSet1">
		<div class="fieldset1 tabel_col clearFix">
			<div class="caption">
				<span class="title">预约基本信息</span>
			</div>
			<div class="fieldBox col_50">
				<div class="label">客户经理</div>
				<div class="field">
					<span>${odrBscInfo.cstMgrNm}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">创建时间</div>
				<div class="field">
					<span name="crtTm" id="crtTm">${odrBscInfo.crtTmString }</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">预约编号</div>
				<div class="field">
					<span name="odrNo" id="odrNo">${odrBscInfo.odrNo}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">&nbsp;</div>
				<div class="field">
					<span>&nbsp;</span>
				</div>
			</div>
			<div class="caption">
				<span class="title">客户信息</span>
			</div>
			<div class="fieldBox col_50">
				<div class="label">客户姓名</div>
				<div class="field">
					<span name="cstNm" id="cstNm"><a class="link" href="javascript:showDetail('${odrBscInfo.cstId}','${odrBscInfo.cstBscInfoVO.cstTypCd}')">${odrBscInfo.cstNm}</a>&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">承租人实际区域</div>
				<div class="field">
					<jsp:include page="../../system/sysRegion/region.jsp" flush="true">
						<jsp:param name="regionShowLvl" value="1" />
					</jsp:include>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">身份证</div>
				<div class="field">
					<span name="certNo" id="certNo">${odrBscInfo.cstBscInfoVO.certNo}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">手机号</div>
				<div class="field">
					<span name="mp1" id="mp1">${odrBscInfo.cstBscInfoVO.cstNpBscInfoVO.mp1}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">婚姻状况</div>
				<div class="field">
					<span name="marStsCdNm" id="marStsCdNm">${odrBscInfo.cstBscInfoVO.cstNpBscInfoVO.marStsCdNm}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">征信结果</div>
				<div class="field">
					<span name="creditRstCdNm" id="creditRstCdNm">${odrBscInfo.creditRstCdNm}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">&nbsp;</div>
				<div class="field">
					<span>&nbsp;</span>
				</div>
			</div>
			<c:if test="${not empty odrBscInfo.cstBscInfoVO }">
				<c:if test="${not empty odrBscInfo.cstBscInfoVO.cstNpBscInfoVO.cstNpSocialRlVO }">
			 	<div class="fieldBox col_50">
					<div class="label">配偶姓名</div>
					<div class="field">
						<span name="rlNm" id="rlNm">${odrBscInfo.cstBscInfoVO.cstNpBscInfoVO.cstNpSocialRlVO.rlNm}&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_50">
					<div class="label">配偶身份证</div>
					<div class="field">
						<span name="rlCertNo" id="rlCertNo">${odrBscInfo.cstBscInfoVO.cstNpBscInfoVO.cstNpSocialRlVO.certNo}&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_50">
					<div class="label">配偶手机号</div>
					<div class="field">
						<span name="rlMp" id="rlMp">${odrBscInfo.cstBscInfoVO.cstNpBscInfoVO.cstNpSocialRlVO.mp}&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_50">
					<div class="label">&nbsp;</div>
					<div class="field">
						<span>&nbsp;</span>
					</div>
				</div>
				</c:if>
			</c:if>
			
			<div class="caption">
				<span class="title">车辆信息</span>
			</div>
			<div class="fieldBox col_50">
				<div class="label">产品名称</div>
				<div class="field">
					<span name="prdNm" id="prdNm">
						${odrBscInfo.odrPrdBscInfoVO.brCd}&nbsp;
						${odrBscInfo.odrPrdBscInfoVO.prdSeries}&nbsp;
						${odrBscInfo.odrPrdBscInfoVO.prdTyp}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">上牌时间</div>
				<div class="field">
					<span name="licDt" id="licDt">${odrBscInfo.odrPrdBscInfoVO.licDt}</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">上牌地区</div>
				<div class="field">
					<span name="rgnPrCdNm" id="rgnPrCdNm">${odrBscInfo.odrPrdBscInfoVO.rgnPrCdNm}-${odrBscInfo.odrPrdBscInfoVO.rgnCyCdNm}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">行驶里程</div>
				<div class="field">
					<span name="tvlMil" id="tvlMil">${odrBscInfo.odrPrdBscInfoVO.tvlMil}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">车牌号</div>
				<div class="field">
					<span name="licNo" id="licNo">${odrBscInfo.odrPrdBscInfoVO.licNo}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">发票金额</div>
				<div class="field">
					<span name="invoiceAmt" id="invoiceAmt">${odrBscInfo.odrPrdBscInfoVO.invoiceAmt/100}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">估值最高可贷金额</div>
				<div class="field">
					<span name="prdAmt" id="prdAmt">${odrBscInfo.odrPrdBscInfoVO.prdAmt/100}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">信审最高可贷金额</div>
				<div class="field">
					<c:if test="${isDetail==1 }">
						<c:if test="${!empty odrBscInfo.odrPrdBscInfoVO.auditPrdAmt }">
							<span name="auditPrdAmt" id="auditPrdAmt">${odrBscInfo.odrPrdBscInfoVO.auditPrdAmt/100}&nbsp;</span>
						</c:if>
						<c:if test="${empty odrBscInfo.odrPrdBscInfoVO.auditPrdAmt }">
							<span name="auditPrdAmt" id="auditPrdAmt">&nbsp;</span>
						</c:if>
					</c:if>
					<c:if test="${isDetail==0 }">
						<c:if test="${!empty odrBscInfo.odrPrdBscInfoVO.auditPrdAmt }">
							<input name="auditPrdAmt" id="auditPrdAmt" data-tofix="2" type="text" class="ui-textbox" value="${odrBscInfo.odrPrdBscInfoVO.auditPrdAmt/100}" validate ="{number:true}">
						</c:if>
						<c:if test="${empty odrBscInfo.odrPrdBscInfoVO.auditPrdAmt }">
							<input name="auditPrdAmt" id="auditPrdAmt" data-tofix="2" type="text" class="ui-textbox" value="" validate ="{number:true}">
						</c:if>
					</c:if>				
				</div>
			</div>
			<%-- <div class="fieldBox col_50">
				<div class="label">挂靠公司</div>
				<div class="field">
					<span name="lnkCompNm" id="lnkCompNm">${odrBscInfo.odrPrdBscInfoVO.lnkCompNm}&nbsp;</span>
				</div>
			</div> --%>
			<div class="fieldBox col_50">
				<div class="label">客户是否个人户</div>
				<div class="field">
					<select name="isOwnCensus" id="isOwnCensus" data-value="${odrBscInfo.isOwnCensus}" >
						<option value=" " checked >请选择</option>
						<option value="1">是</option>
						<option value="0">否</option>
					</select>
					<span class="requiredSymbol">*</span>
				</div>
			</div>
			<div class="fieldBox col_100" id="mfrDiv">
				<div class="label">挂靠公司</span></div>
               	<div class="field">
               		<input name="lnkCompId" id="lnkCompId" type="text" value="" placeholder="请选择" ltype="combobox">
               	</div>
            </div>
			<%-- <div class="fieldBox col_50">
				<div class="label">行驶证</div>
				<div class="field">
					<span name="cstMgrNm" id="cstMgrNm"><a class="link" href="javascript:viewAttachments('${odrBscInfo.odrPrdBscInfoVO.id}','0000','13')">查看</a>&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">登记证书</div>
				<div class="field">
					<span name="cstMgrNm" id="cstMgrNm"><a class="link" href="javascript:viewAttachments('${odrBscInfo.odrPrdBscInfoVO.id}','0000','240')">查看</a>&nbsp;</span>
				</div>
			</div> --%>
			<div class="sqPanel">
	            <div class="sqPanel_body">
				    <div id="odrPrdFileGrid" class="sq-grid"></div>
	            </div>
			</div> 
			<c:if test="${isDetail==0 }">
				<div class="fieldset1 clearFix">
			        <div class="btnsBox" style="text-align: center;">
				        	<span id="saveOdrPrd_Btn" class="sq-button sq-button-round" onclick="saveOdrPrd_Btn();">保存</span>
				    </div>
			    </div>
			</c:if>
			<div class="caption">
				<span class="title">分期方案</span>
			</div>
			<div class="fieldBox col_50">
				<div class="label">合同编号</div>
				<div class="field">
					<span name="lsCntNo" id="lsCntNo">${odrBscInfo.prjBscInfoVO.lsCntNo}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">数据来源</div>
				<div class="field">
					<span name="dateResCdNm" id="dateResCdNm">${odrBscInfo.dateResCdNm}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">实际贷款金额</div>
				<div class="field">
					<c:if test="${isDetail==1 }">
						<span name="contAmt" id="contAmt">${odrBscInfo.odrQuatPrpsVO.contAmt/100}&nbsp;</span>
					</c:if>
					<c:if test="${isDetail==0 }">
						<input name="contAmt" id="contAmt" data-tofix="2" type="text" class="ui-textbox" value="${odrBscInfo.odrQuatPrpsVO.contAmt/100}" validate ="{number:true}">
					</c:if>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">年利率</div>
				<div class="field">
					<span name="monRate" id="monRate">${yearPct }&nbsp;</span>%
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">期限</div>
				<div class="field">
					<c:if test="${isDetail==1 }">
						<span name="lsPd" id="lsPd">${odrBscInfo.odrQuatPrpsVO.lsPd}&nbsp;</span>
					</c:if>
					<c:if test="${isDetail==0 }">
						<select name="lsPd" id="lsPd" data-value="${odrBscInfo.odrQuatPrpsVO.lsPd}">
							<option value=" " checked >请选择</option>
							<c:forEach items="${lsPdArr }" var="pd">
								<option value="${pd }">${pd }</option>
							</c:forEach>
						</select>
					</c:if>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">月付金额</div>
				<div class="field">
					<span name="eachPayAmt" id="eachPayAmt">${odrBscInfo.odrQuatPrpsVO.eachPayAmt/100}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">留购价</div>
				<div class="field">
					<span name="" id="aaa">${lgjAmt }&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">&nbsp;</div>
				<div class="field">
					<span>&nbsp;</span>
				</div>
			</div>
			<c:if test="${isDetail==0 }">
				<div class="fieldset1 clearFix">
			        <div class="btnsBox" style="text-align: center;">
				        	<span id="saveQuatPrps_Btn" class="sq-button sq-button-round" onclick="saveQuatPrps_Btn();">保存修改方案</span>
				    </div>
			    </div>
			</c:if>
			
			<div class="caption">
				<span class="title">推荐人信息</span>
			</div>
			<div class="fieldBox col_50">
				<div class="label">一级推荐人</div>
				<div class="field">
					<span name="refOneNm" id="refOneNm">${odrBscInfo.refOneNm}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">一级返利金额</div>
				<div class="field">
					<span name="refOneAmtNm" id="refOneAmtNm">${odrBscInfo.refOneAmtNm}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">二级推荐人</div>
				<div class="field">
					<span name="refTwoNm" id="refTwoNm">${odrBscInfo.refTwoNm}&nbsp;</span>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label">二级返利金额</div>
				<div class="field">
					<span name="refTwoAmtNm" id="refTwoAmtNm">${odrBscInfo.refTwoAmtNm}&nbsp;</span>
				</div>
			</div>
			
			<div class="caption">
				<span class="title"><span class="requiredSymbol">风控策略结果</span></span>
			</div>
			<div class="fieldBox col_100">
				<div class="label">风控策略结果</div>
				<div class="field">
					<span id="riskControlResults" class="requiredSymbol">
						
					</span>
				</div>
			</div>
			<div class="caption">
		        <span class="title">产品信息</span>
		    </div>
		    <div class="sqPanel">
		    	<div class="sqPanel_body">
                	<div id="ligergrid_odrPrd" class="sq-grid"></div>
                </div>
	        </div>
			<div class="caption">
				<span class="title">车辆运营</span>
			</div>
			<div class="fieldBox col_50">
				<div class="label" role="textclip">自有车辆情况</div>
				<div class="field">
					<textarea name="selfTkDesc" id="selfTkDesc" onblur="checkSelfTkDesc()"  class="ui-textarea l-textarea" style="width:98%" rows ="1" value="" ></textarea>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label" role="textclip">运营路线</div>
				<div class="field">
					<textarea name="route" id="route" class="ui-textarea l-textarea" style="width:98%" rows ="1" value="" validate="{required:true}"></textarea>
					<span class="requiredSymbol">*</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">收入方式</div>
				<div class="field">
					<select name="profitCd" id="profitCd" data-value=" ">
						<option value=" " checked >请选择</option>
						<c:forEach items="${profitCdList }" var="kv">
							<option value="${kv.key }">${kv.value }</option>
						</c:forEach>
					</select>
				</div>
			</div>
			<div class="fieldBox col_50">
				<div class="label" role="textclip">运营年限</div>
				<div class="field">
					<textarea name="experience" id="experience"  onblur="checkBizExp()"  class="ui-textarea l-textarea" style="width:98%" rows ="1" value="" ></textarea>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">主货物大类</div>
				<div class="field">
					<select name="mainGoodsCd" id="mainGoodsCd" data-value=" " onchange="getGoods();" validate="{required:true,select:true}">
						<option value=" " checked >请选择</option>
						<c:forEach items="${mainGdsTypCdList }" var="kv">
							<option value="${kv.key }">${kv.value }</option>
						</c:forEach>
					</select>
					<span class="requiredSymbol">*</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">主运输货物</div>
				<div class="field">
					<select name="goods" id="goods" data-value=" " onchange="checkGoods();" validate="{required:true,select:true}">
					</select>
					<span class="requiredSymbol">*</span>
				</div>
			</div>
			<div id='goodsDispDIV' class="fieldBox col_33" style="display: none">
				<div class="label">主运输货物描述</div>
				<div class="field">
					<input name="goodsDisp" id="goodsDisp" type="text" class="ui-textbox" value="" >
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">货物来源</div>
				<div class="field">
					<select name="goodsResCd" id="goodsResCd" data-value=" ">
						<option value=" " checked >请选择</option>
						<c:forEach items="${goodsResList }" var="kv">
							<option value="${kv.key }">${kv.value }</option>
						</c:forEach>
					</select>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">主货物结算方式</div>
				<div class="field">
					<select name="settlementTypeCd" id="settlementTypeCd" data-value=" ">
						<option value=" " checked >请选择</option>
						<c:forEach items="${gdsStlWayCdList }" var="kv">
							<option value="${kv.key }">${kv.value }</option>
						</c:forEach>
					</select>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">司机情况</div>
				<div class="field">
					<select name="driverInfo" id="driverInfo" data-value=" ">
						<option value=" " checked >请选择</option>
						<c:forEach items="${driverList }" var="kv">
							<option value="${kv.key }">${kv.value }</option>
						</c:forEach>
					</select>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">第二还款来源</div>
				<div class="field">
					<select name="secondPayResCd" id="secondPayResCd" data-value=" ">
						<option value=" " checked >请选择</option>
						<c:forEach items="${secondPayResCdList }" var="kv">
							<option value="${kv.key }">${kv.value }</option>
						</c:forEach>
					</select>
				</div>
			</div>
			<div class="fieldBox col_66">
				<div class="label" role="textclip">其他信息</div>
				<div class="field">
					<!-- <textarea name="otherInfo" id="otherInfo" class="l-textarea" style="width:99%" rows ="1" value="" ></textarea> -->
					<textarea name="otherInfo" id="otherInfo" rows="1" class="ui-textarea l-textarea" style="width:96%;height: 20px;"></textarea>
				</div>
			</div>
			<div id="auditorEvaluationDiv" hidden>
			<div class="caption">
				<span class="title">信审员评价</span>
			</div>
			<div class="fieldBox col_33">
				<div class="label">是否首次立项</div>
				<div class="field">
					<select name="isNew" id="isNew" data-value=" " validate ="{required:true,select:true}">
						<option value=" " checked >请选择</option>
						<c:forEach items="${yesOrNoCdList }" var="kv">
							<option value="${kv.key }">${kv.value }</option>
						</c:forEach>
					</select>
					<span class="requiredSymbol">*</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">流程审核意见</div>
				<div class="field">
					<select name="processOpinionCd" id="processOpinionCd" data-value=" " validate ="{required:true,select:true}">
						<option value=" " checked >请选择</option>
						<c:forEach items="${processOpinionCdList }" var="kv">
							<option value="${kv.key }">${kv.value }</option>
						</c:forEach>
					</select>
					<span class="requiredSymbol">*</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">客户经理评级</div>
				<div class="field">
					<select name="cstMgrLvlCd" id="cstMgrLvlCd" data-value=" ">
						<option value=" " checked >请选择</option>
						<c:forEach items="${cstMgrLvlCdList }" var="kv">
							<option value="${kv.key }">${kv.value }</option>
						</c:forEach>
					</select>
					<span id="cstMgrLvlCdSpan" style="display:none" class="requiredSymbol">*</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">本地生活年限</div>
				<div class="field">
					<select name="localLiveTmCd" id="localLiveTmCd" data-value=" ">
						<option value=" " checked >请选择</option>
						<c:forEach items="${bizExpList }" var="kv">
							<option value="${kv.key }">${kv.value }</option>
						</c:forEach>
					</select>
					<span id="localLiveTmCdSpan" style="display:none" class="requiredSymbol">*</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">风控评级</div>
				<div class="field">
					<select name="riskCtrlLvlCd" id="riskCtrlLvlCd" data-value=" ">
						<option value=" " checked >请选择</option>
						<c:forEach items="${riskCtrlLvlCdList }" var="kv">
							<option value="${kv.key }">${kv.value }</option>
						</c:forEach>
					</select>
					<span id="riskCtrlLvlCdSpan" style="display:none" class="requiredSymbol">*</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label">首付款来源</div>
				<div class="field">
					<select name="firstPayResCd" id="firstPayResCd" data-value=" ">
						<option value=" " checked >请选择</option>
						<c:forEach items="${firstPayResCdList }" var="kv">
							<option value="${kv.key }">${kv.value }</option>
						</c:forEach>
					</select>
					<span id="firstPayResCdSpan" style="display:none" class="requiredSymbol">*</span>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label" role="textclip">资质评价</div>
				<div class="field">
					<textarea name="qualificationOpn" id="qualificationOpn" rows="1" class="ui-textarea l-textarea" style="width:90%"></textarea>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label" role="textclip">资料评价</div>
				<div class="field">
					<textarea name="infomationOpn" id="infomationOpn" rows="1" class="ui-textarea l-textarea" style="width:90%"></textarea>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label" role="textclip">方案评价</div>
				<div class="field">
					<textarea name="schemeOpn" id="schemeOpn" rows="1" class="ui-textarea l-textarea" style="width:90%"></textarea>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label" role="textclip">风险评价</div>
				<div class="field">
					<textarea name="riskOpn" id="riskOpn" class="ui-textarea l-textarea" style="width:90%" rows ="1" ></textarea>
				</div>
			</div>
			<div class="fieldBox col_33">
				<div class="label" role="textclip">线下合同资料</div>
				<div class="field">
					<textarea name="offLionContract" id="offLionContract" class="ui-textarea l-textarea" style="width:90%" rows ="1" ></textarea>
				</div>
			</div>
			</div>
		</div>
		<div class="btnsBox">
			<c:if test="${isDetail==0 }">
				<sys:funcAuth resCd="addCreditInfo">
					<span id="saveBtn1" class="sq-button sq-button-round" onclick="addCreditInfo();">保存至信审基础台账</span>
				</sys:funcAuth>
				<sys:funcAuth resCd="addAudRejectOpinion">
		        	<span id="ccc" class="sq-button sq-button-round" onclick="toCreditRejectOpinionAdd();">信审驳回意见</span>
				</sys:funcAuth>
				<sys:funcAuth resCd="addAudReturnVisit">
		        	<span id="aaa" class="sq-button sq-button-round" onclick="toAudReturnVisitAdd();">修改回访</span>
				</sys:funcAuth>
				<sys:funcAuth resCd="audReturnVisitDetail">
		        	<span id="aaa" class="sq-button sq-button-round" onclick="toAudReturnVisitDetail();">查看回访</span>
				</sys:funcAuth>
			</c:if>
			<c:if test="${isDetail==1 }">
				<sys:funcAuth resCd="audReturnVisitDetail">
		        	<span id="aaa" class="sq-button sq-button-round" onclick="toAudReturnVisitDetail();">查看回访</span>
				</sys:funcAuth>
			</c:if>
	        <input name="creditInfoId" id="creditInfoId" type="hidden" value="">
	    </div>
	</form>
	<!-- 附件展示 -->
	<ul id="dowebok" style="display:none">
	</ul>
</div>
<script type="text/javascript">

var _projectId = '${projectId}';//项目ID
var _proIntId = '${proIntId}';//流程实例ID
var _taskId = '${taskId}';//任务节点ID
var _taskDefKey = '${taskDefKey}';//任务节点KEY
var _taskNm = '${taskNm}';//节点名称
var isDetail = '${isDetail}';
var ctrlKey = '${ctrlKey}';

$(function () {
	$('#formSet1').ligerForm({
        validate : true
	});
	initCreditData();//初始化信审整体资料信息
	if(isDetail==1){
		disableFixedFiled();//禁用固定标签
	}
	initOdrPrdList();
	initOdrPrdFileGrid();
	getRiskControlResults(${odrBscInfo.odrPrdBscInfoVO.lnkCompId});
	valitadeRgnProvCd("formSet1");
	renderDate2();
	//信审员评价模块是否展示控制
	ctrlAuditorEvaluationShow();
});

function ctrlAuditorEvaluationShow() {
	<sys:funcAuth resCd="auditorEvaluation">
	$("#auditorEvaluationDiv").show();
	</sys:funcAuth>
}

//格式化时间
function renderDate(rowdata, index, value) {
    var dateStr = "";
    if (null != value) {
        var date = new Date(value);
        dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DDHHMMSS);
    }
    return dateStr;
}

function viewAttachments(_id,_orgCd,_typeCd) {
	var urlArray = null;
	//alert(_id);
	$.ajax({
		type : 'get',
		dataType : 'json',
		data : {
			id : _id,
			orgCd :_orgCd,
			typeCd: _typeCd
		},
		url : '<%=path%>/carloan/odrbscinfo/viewAttachments.do',
		beforeSend : function() {
			wait_dialog = $.ligerDialog.SQalert({
				content : '正在查询图片...',
				SQ_type : "waitting"
			});
		},
		success : function(msg) {
			wait_dialog.close();
			if (msg.success == 1) {
				//console.log(msg.data);
				urlArray = msg.data;
				if (urlArray != null && urlArray != "") {
					for (img in urlArray) {
						//console.log(urlArray[img]);
						var li = '<li><img  src="' + urlArray[img] + '" alt=""></li>';
						$('#dowebok').append(li);
					}
					//$('#dowebok').viewer();
					var viewer = new Viewer(document.getElementById('dowebok'), {
						hidden : function() {
							//alert('hidden');
							urlArray = null;
							$('#dowebok').html('');
							viewer.destroy();
						},
					});
					viewer.show();
				} else {
					$.ligerDialog.SQalert({
						content : '该记录没有图片...',
						SQ_type : "warn"
					});
				}
			} else {
				$.ligerDialog.SQalert({
					content : msg.info,
					SQ_type : "error"
				});
			}
		}
	});
}
//查看数据
function showDetail(_id,_cstTypCd){
	//1 自然人  2 法人
	if(_cstTypCd == 1){
		Add_navTab("tab_customer_np_detail"+_id, "客户详情", '<%=path%>/customer/cstbscinfo/toCustCstBacInfoNpDetailPage.do?id='+_id);
	}else if(_cstTypCd == 2){
		Add_navTab("tab_customer_corp_detail"+_id, "客户详情", '<%=path%>/customer/cstbscinfo/toCustCstBacInfoCorpDetailPage.do?id='+_id);
	}
}
function renderDate2(){
	var odrDt=$("#odrDt").html();
	var licDt=$("#licDt").html();
	if(" " != odrDt && ""!=odrDt){
		var date = new Date(odrDt);
		var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
		$("#odrDt").html(dateStr);
	}
	if(" " != licDt||""!=licDt){
		var date = new Date(licDt);
		var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM);
		$("#licDt").html(dateStr);
	}
}

//请求信审整体资料数据(参数:项目ID,流程实例ID)
function initCreditData(){
	if(!_projectId || !_proIntId){
		return;
	}
   	var _url = '<%=path%>/audit/audCreditInfo/getByProjectIdAndProIntId.do';
	$.ajax({
   		type: 'get',
   		dataType:'json',
   		data:{
   			projectId:_projectId,
   			proIntId:_proIntId
   		},
   		url: _url,
   		success:function(msg){
			if(msg.success == 1){
				setData(msg.data);//设置数据
   				mainData = msg.data;
			}else{
				top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
			}
		}
	});
}
	
//设置页面数据
function setData(data){
	var form = liger.get("formSet1");
	//设置数据
	$("#creditInfoId").val(data.id);//信审整体资料ID
	$("#selfTkDesc").val(data.selfTkDesc);
	$("#route").val(data.route);
	if(data.netIncome){
		$("#netIncome").val(data.netIncome/100);
	}
	if(data.highEasonCharterdBus){
		$("#highEasonCharterdBus").val(data.highEasonCharterdBus/100);
	}
	if(data.peakEasonCharterdBus){
		$("#peakEasonCharterdBus").val(data.peakEasonCharterdBus/100);
	}
	$("#otherFeePct").val(data.otherFeePct);
	if(data.grossIncome){
		$("#grossIncome").val(data.grossIncome/100);
	}
	$("#otherInfo").val(data.otherInfo);
	$("#qualificationOpn").val(data.qualificationOpn);
	$("#infomationOpn").val(data.infomationOpn);
	$("#schemeOpn").val(data.schemeOpn);
	$("#riskOpn").val(data.riskOpn);
	$("#goodsDisp").val(data.goodsDisp);
	if(StringUtils.isEmpty(data.offLionContract)){
		$("#offLionContract").val("线下合同齐全合规，交车验收单、车钥匙、合格证已上传。");
	}else{
		$("#offLionContract").val(data.offLionContract);
	}
	$("#pbcCreditInfo").val(data.pbcCreditInfo);
	$("#tripCreditInfo").val(data.tripCreditInfo);
	$("#ownCreditInfo").val(data.ownCreditInfo);
	form.setData({
		profitCd:data.profitCd,
		experience:data.experience,
		mainGoodsCd:data.mainGoodsCd,
		goodsResCd:data.goodsResCd,
		settlementTypeCd:data.settlementTypeCd,
		driverInfo:data.driverInfo,
		secondPayResCd:data.secondPayResCd,
		processOpinionCd:data.processOpinionCd,
		cstMgrLvlCd:data.cstMgrLvlCd,
		localLiveTmCd:data.localLiveTmCd,
		riskCtrlLvlCd:data.riskCtrlLvlCd,
		firstPayResCd:data.firstPayResCd,
		isMeetPolicyCd:data.isMeetPolicyCd,
		circuitType:data.circuitType,
		cargoWeigth:data.cargoWeigth,
		cargoVomule:data.cargoVomule,
		handingMode:data.handingMode,
		circuitEfficiency:data.circuitEfficiency,
		fare:data.fare
	});
	if(null!=data.isNew){
		form.setData({
			isNew:data.isNew.toString(),
		});
	}
	
	getGoods();//手动调用
	setRgnProvCdUpdataValue(data.actualAreaCd);//实际区域
	setRegionSelectDataChange();
	
};
//主货物大类change事件
function getGoods(){
	var _PCode = $("#mainGoodsCd").val();
	if(!_PCode) return;
	$.ajax({
		type: 'post',
		dataType:'json',
		data:{PCode:_PCode},
		url: '<%=path%>/audit/audCreditInfo/getGoodsTypJSON.do',
		success:function(msg){
			if(msg.success == 1){
				//主运输货物
				var goods = $("#goods");
				if(goods.length){
					$("#goods").empty();
					$("#goods").append("<option value=''>请选择</option>");
					$.each(msg.data,function(index,obj) {
						var option = "<option value='"+obj.key+"'>"+obj.value+"</option>";
							$(option).appendTo("#goods");
							liger.get("goods").setSelect();
					});
					$("#goods").add_ligerFormEditor();
				}
				SetIframe_height();
				if(mainData && mainData.goods){
					var form = liger.get("formSet1");
					form.setData({
						goods:mainData.goods,
					});
					checkGoods();//手动调用
				}
			}else{
				top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
			}
		}
	});
}
function checkGoods(){
	var goods = liger.get("goods");
	if(goods){
		var selectGoods = goods.getSelected();
		if(selectGoods){
			if(selectGoods.text=='其他'){
				$("#goodsDispDIV").show();
			}else{
				$("#goodsDispDIV").hide();
			}
		}
	}
}

//保存信审整体资料信息
function addCreditInfo(){
    var form = liger.get("formSet1");
    if (!form.valid()) {
    	top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO , SQ_type: "warning" });
           return false;
       }
    var data = form.getData();
    data["actualAreaCd"] = getRgnProvCd();//获取省代码(实际区域)
    data["projectId"] = _projectId;//项目ID
    data["proIntId"] = _proIntId;//流程实例ID
    
    data["taskDefKey"] = _taskDefKey;//节点KEY
    data["taskNm"] = _taskNm;//节点名称
    
    if(odrPrdGrid){
	    data["odrPrdInfo"] = JSON.stringify(odrPrdGrid.getData());//卡车列表信息
    }
    
    var id = $("#creditInfoId").val();
       var url = '<%=path%>/audit/audCreditInfo/add.do';
       if(id != ""){
       	url = '<%=path%>/audit/audCreditInfo/modify.do';
       	data["id"]= id;
       }
      var wait_dialog;
    $.ajax({
		type: 'post',
		dataType:'json',
		data:data,
		url: url,
		beforeSend: function(){
	          wait_dialog=top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
	     },
		success:function(msg){
			 wait_dialog.close();
			 if(msg.success == 1){
				 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
				 if(msg.data){
					 $("#creditInfoId").val(msg.data);
				 }
			 }else{
				 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
			 }
		}
	});
}

function toCreditRejectOpinionAdd(){
	var bookTypCd = AuditConstant.AUD_REJECT_BOOK_TYP_CD;//台账类型-信审驳回台账
	var opinionTypeCd = AuditConstant.SYS_FLOW_REJ_RSN_TYP_CD_PRJ;//驳回意见类型-立项驳回
	top.$.ligerDialog.SQopen({
        width: 900,
        height:500,
        top:200,
        title : '信审驳回意见',
        url:'<%=path%>/audit/audRejectOpinion/toAddPage.do?projectId='+_projectId+'&proIntId='+_proIntId+'&taskId='+_taskId+'&taskDefKey='+_taskDefKey+'&opinionTypeCd='+opinionTypeCd+'&bookTypCd='+bookTypCd+'&taskNm='+_taskNm,
        buttons: [{
	            text: "保存", type: 'ok', cls: 'l-dialog-btn-ok',
	            onclick: function (item, Dialog) {
	                if (Dialog.onOk) Dialog.onOk();
	            }
	        }, {
	            text: "关闭", type: 'cancel', cls: 'l-dialog-btn-no',
	            onclick: function (item, Dialog) {
	                if (Dialog.onCancel) Dialog.onCancel();
	            }
	        }
	    ]
    });
}

//新增/修改
function toAudReturnVisitAdd(){
	//重新获取信审整体资料信息
	var callback = function callback() {
		initCreditData();
	}
    Add_navTab("AudReturnVisit"+_projectId, "修改回访记录", '<%=path%>/audit/audReturnVisit/toAddPage.do?buOrgCd=${buOrgCd}&projectId='+_projectId+'&proIntId='+_proIntId+'&prdTypCd=',callback);
}
//详情
function toAudReturnVisitDetail(){
    Add_navTab("AudReturnVisit"+_projectId+1, "查看回访记录", '<%=path%>/audit/audReturnVisit/toAddPage.do?buOrgCd=${buOrgCd}&isDetail=1&projectId='+_projectId+'&proIntId='+_proIntId+'&prdTypCd=');
}

//保存信审最高估值和挂靠公司信息
function saveOdrPrd_Btn(){
	var auditPrdAmt = $("#auditPrdAmt").val();
	var isOwnCensus = $("#isOwnCensus").val();
	var _lnkCompId = liger.get("lnkCompId").getValue();
	var _lnkCompNm = liger.get("lnkCompId").getText();
	if(!isOwnCensus || isOwnCensus==" "){
   		top.$.ligerDialog.SQalert({content: "请选择客户是否个人户.", SQ_type: "warning"});
   		return;
	}
	if(isOwnCensus=="0"){
		if(!_lnkCompId || _lnkCompId==" "){
	   		top.$.ligerDialog.SQalert({content: "请选择挂靠公司.", SQ_type: "warning"});
	   		return;
		}
	}
	if(!auditPrdAmt || auditPrdAmt==" "){
   		top.$.ligerDialog.SQalert({content: "信审最高可贷金额不能为空.", SQ_type: "warning"});
   		return;
	}
	var wait_dialog;
	$.ajax({
		type: 'post',
		dataType:'json',
		data:{
			odrPrdId:'${odrBscInfo.odrPrdBscInfoVO.id}',
			auditPrdAmt:auditPrdAmt,
			lnkCompId:_lnkCompId,
			lnkCompNm:_lnkCompNm,
			isOwnCensus:isOwnCensus,
			odrId:'${odrBscInfo.id}',
		},
		url: '<%=path%>/carloan/odrprdbscinfo/modifyOdrPrd.do',
		beforeSend: function(){
	          wait_dialog=$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
	     },
		success:function(msg){
			 wait_dialog.close();
			 if(msg.success == 1){
				 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
				 getRiskControlResults();
			 }else{
				 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
			 }
		}
	});
}

//保存修改方案
function saveQuatPrps_Btn(){
	var contAmt = $("#contAmt").val();
	var lsPd = $("#lsPd").val();
	var auditPrdAmt = $("#auditPrdAmt").val();
	var prdAmt = $("#prdAmt").val();
	
	if(!contAmt || contAmt==" "){
   		top.$.ligerDialog.SQalert({content: "实际贷款金额不能为空.", SQ_type: "warning"});
   		return;
	}
	if(!lsPd || lsPd==" "){
   		top.$.ligerDialog.SQalert({content: "贷款期限不能为空.", SQ_type: "warning"});
   		return;
	}
	if(prdAmt && parseFloat(prdAmt)<parseFloat(contAmt)){
   		top.$.ligerDialog.SQalert({content: "实际贷款金额不能超过估值最高可贷金额.", SQ_type: "warning"});
   		return;
	}
	if(auditPrdAmt && parseFloat(auditPrdAmt)<parseFloat(contAmt)){
   		top.$.ligerDialog.SQalert({content: "实际贷款金额不能超过信审最高可贷金额.", SQ_type: "warning"});
   		return;
	}
	
	var wait_dialog;
	$.ajax({
		type: 'post',
		dataType:'json',
		data:{
			id:'${odrBscInfo.odrQuatPrpsVO.id}',
			contAmt:contAmt,
			lsPd:lsPd,
			lsPdUntCd:'${odrBscInfo.odrQuatPrpsVO.lsPdUntCd}'
		},
		url: '<%=path%>/carloan/odrquatprps/modify.do',
		beforeSend: function(){
	          wait_dialog=$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
	     },
		success:function(msg){
			 wait_dialog.close();
			 if(msg.success == 1){
				 $("#eachPayAmt").html(msg.data);
				 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "success"});
			 }else{
				 top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
			 }
		}
	});
}

var comboGrid_defaultValue="${odrBscInfo.odrPrdBscInfoVO.lnkCompId}"; //初始值(value)
var comboGrid_defaultText="${odrBscInfo.odrPrdBscInfoVO.lnkCompNm}"; //初始值(text)
var isInit_setSearchComboVal = false; //是否初始化的时候已经赋完初始值？
//厂商带搜索
//var comboGrid_defaultValue = "${mfrId}"; //厂商初始值
var combo_Mng = $("#lnkCompId").ligerComboBox({
	width: 350, 
	selectBoxWidth: 350,
	selectBoxHeight: 240,
	valueField: 'id',
	textField: 'lnkCompNm',
	isMultiSelect: true,
	grid: getGridOptions(true),
	condition: {
	    labelWidth: 0,
	    space: 5,
	    fields: [{ name: 'lnkCompNm', width: 150, keyName: 'id'}]
	},
	delayLoadGrid: false,
	onChangeValue: function (value) {
	    if (combo_Mng) {
	    	if (value=="") comboGrid_defaultValue = ""; //如果点击清空'x'，就滞空初始值
	       //$("#mfrId").show_ligerComboItems();
	    };
	    SetIframe_height();
	}
});
//$("#mfrId").ligerGetComboBoxManager().updateStyle();//初始值之后需要刷新组件才有变化
function getGridOptions(checkbox){
	var url; 
	//var _lnkCompId = $("#lnkCompId_1").val();
	var audStsCdList = new Array();
	audStsCdList.push(CommonConstant.C_AUD_PASS_CODE);
	var audStsCdListArr = JSON.stringify(audStsCdList);
	//if(!_lnkCompId){
		url = '<%=path%>/project/prjlnkcomp/initList.do?flag=quote&audStsCdList='+audStsCdListArr
	//}else{
		//url = '<%=path%>/project/prjlnkcomp/initList.do.do?flag=quote&lnkCompIdsString='+ comboGrid_defaultValue
	//}
	var options = {
		usePager: false,
	    columns: [
	        { display: '挂靠公司名称', name: 'lnkCompNm', minWidth: 300 }
	    ],
	    switchPageSizeApplyComboBox: false,
	    url : url,
	    method: 'get',
	    dataAction: 'local',
	    pageSize: 10,
	    root:'rows',
	    record:'total',
	    rownumbers:true,
	    usePagerOnLessPagesize: false,
	    cssClass: "SMALL_grid",
	    frozen: false,
	    isSelected: function (rowdata) {
	        if (comboGrid_defaultValue == "") return false;
	        var defaultItems = comboGrid_defaultValue.split(";");
	        if(!isInit_setSearchComboVal) { //只在初始化时执行一次，在onAfterShowData后改变
	            for (var i = 0; i < defaultItems.length; i++) {
	            	if(rowdata[combo_Mng.options.valueField] == defaultItems[i]) return true;
	            }
	        }
	        return false;
	    },
	    onAfterShowData: function (currentData) {
	   	 if(!isInit_setSearchComboVal) { //只在初始化时执行一次，在onAfterShowData后改变
	           	//combo_Mng.selectValue(comboGrid_defaultValue);
	           	combo_Mng.setInputValue(comboGrid_defaultValue, comboGrid_defaultText, true);
	               isInit_setSearchComboVal = true;
	    	}
	    }
	};
	return options;
}

function getRiskControlResults(_lnkCompId){
	if(!_lnkCompId){
		_lnkCompId = liger.get("lnkCompId").getValue();
	}
	console.log(_lnkCompId);
   	var _url = '<%=path%>/carloan/odrbscinfo/getRiskControlResults.do';
	$.ajax({
   		type: 'get',
   		dataType:'json',
   		data:{
   			cstId:'${odrBscInfo.cstId}',
   			lnkCompId:_lnkCompId
   		},
   		url: _url,
   		success:function(msg){
			if(msg.success == 1){
				$("#riskControlResults").html(msg.data);
			}else{
				top.$.ligerDialog.SQalert({content:msg.info, SQ_type: "error"});
			}
		}
	});
}
var equCategoryCdListJSON = [];
<c:if test="${not empty equCategoryCdListJSON}"> equCategoryCdListJSON = ${equCategoryCdListJSON}; </c:if>
var odrPrdGrid;
function initOdrPrdList(){
	odrPrdGrid = $("#ligergrid_odrPrd").ligerGrid({
        url: '<%=path%>/carloan/odrprdbscinfo/initOdrPrdList.do',
        method: 'get',
        parms:{
        	prjId:_projectId,
   			proIntId:_proIntId
        },
        columns: [
            {display: '设备大类', name: 'audCarInfoVO.equCategoryCd',
                editor: {
                    type: 'select',
                    data: equCategoryCdListJSON,
                    valueField: 'key',
                    textField: 'value'
                },
                valueField: 'audCarInfoVO.equCategoryCd',
                textField: 'audCarInfoVO.equCategoryCdNm',
                render: function (item) {
                    return item.audCarInfoVO.equCategoryCdNm;
                }
            },
            {display: '品牌车型',isEllipsis:false,align:'left',
            	render: function (rowdata, rowindex, value){
            		return rowdata.brCd+""+rowdata.prdSeries+""+rowdata.prdTyp;
            	}
            },
            {display: '车辆估值',align:'right', name: 'prdAmt' ,
            	render: function (rowdata, rowindex, value){
            		if(rowdata.prdAmt){
	            		return rowdata.prdAmt/100;
            		}else{
            			return "";
            		}
            	}
            },
            {display: '操作',align:'left',
    	    	render: function (rowdata, rowindex, value){
    	   			var h='<a class="sq-button-hasicon" href="javascript:toCorePrcBookAdd(';
    	                h+="'"+rowdata.id+"'";
    	                h+=')"><i class="sqBtnIco_4"></i>核价信息</a>';
    	            return h;
   	    		}
            }
            ],
       	onBeforeSubmitEdit: function (e) {
        },
        onBeforeEdit: function (e) {
        	if(isDetail==1){
        		e.column.editor.readonly=true;
        	}
        },
        onBeforeShowData: function(){SetIframe_height();},
        onAfterShowData: function(){SetIframe_height();},
        pageSize:100,
        usePagerOnLessPagesize: false,
        root: 'rows',
        record: 'total',
        hideLoadButton: true,
        width: '100%',
        height: 300,
        heightDiff: -2,
        fixedCellHeight:false,
        enabledEdit: true,
        isScroll: false,
        checkbox: false,
        rownumbers: true,
        allowUnSelectRow: true,
        alternatingRow: false
    });
}

function toCorePrcBookAdd(_prjPrdId){
    Add_navTab("corePrcBook"+_prjPrdId, "车辆配置单", '<%=path%>/audit/audStandingBook/toCorePrcBookAddPage.do?fromCddFlag=1&buOrgCd=${buOrgCd}&prjPrdId='+_prjPrdId+'&proIntId='+_proIntId+'&projectId='+_projectId+'&isDetail='+isDetail);
}
var odrPrdFileGrid = null;
function initOdrPrdFileGrid(){
	odrPrdFileGrid = $("#odrPrdFileGrid").ligerGrid({
        url: '<%=path%>/project/prjFileInfo/initPrjPrdDtlFileInfoList.do?fromCddFlag=1&cstMgrOrgCd=${cstMgrOrgCd}&prjPrdDtlId=${odrBscInfo.odrPrdBscInfoVO.id}&prjTypCd=CDDYW&prjId=${prjId}',
        method: 'get',
        columns: [
            {display: '资料名称', name: 'datNm', minWidth: 100, align: 'left', enabledSort: false},
            {display: '上传文件名称', name: 'fileNm', minWidth: 100, align: 'left', enabledSort: false,
                render:function(rowdata,rowindex,value){
                    if(value){
                        //return '<a target="_blank" name="showimg" href="'+rowdata.filePath+'">'+rowdata.fileNm+'</a>';
                        var h;
                        h='<a href="javascript:uploadFileByUrl(';
                        h+="'"+rowdata.filePath+"'";
                        h+=",'"+rowdata.fileNm+"'";
                        h+=')">'+rowdata.fileNm+'</a>'
                        return h;
                    }
                }
            },
            {display: '上传时间', name: 'crtTm', minWidth: 100, align: 'left', enabledSort: false,render:renderDate},
            {display: '状态', name: 'audStsCdNm', width: 100, enabledSort: false},
            {display: '操作', name: '', minWidth: 100, align: 'left', enabledSort: false,
                render:function(rowdata,rowindex,value){
                    var h='';
                    if(ctrlKey==1){
                        //h+='<a class="sq-button-hasicon" style="cursor:pointer;" onclick="upFileForPrjPrdDtl(event,\''+rowdata.cfgCd+'\',\''+rowdata.cfgDtlCd+'\',\''+rowdata.orgCd+'\');"><i class="sqBtnIco_9"></i>上传</a> ';
                        /* <sys:FlowFrmAth preTaskIds="${preTaskIds}" athCd="addPrjFile" pInstId="${pInstId}">
                            h+='<span class="sq-button sq-button-round fileupload-button">上传<input type="file" id="fileup_'+rowdata.cfgCd+'_'+rowdata.cfgDtlCd+'" multiple name="fileup_'+rowdata.cfgCd+'_'+rowdata.cfgDtlCd+'"' +
                                    ' class="fileupload-input" onchange="onChangefile_multi(event,\''+rowdata.cfgCd+'\',\''+rowdata.cfgDtlCd+'\',\''+rowdata.orgCd+'\',1)"></span>';
						</sys:FlowFrmAth> */
                        if(rowdata.fileId && rowdata.audStsCd!=1) {
                        	/* <sys:FlowFrmAth preTaskIds="${preTaskIds}" athCd="addPrjFile" pInstId="${pInstId}"> */
                                h += '<a class="sq-button-hasicon" style="cursor:pointer;" onclick="delFile(event,' + rowdata.fileId + ');"><i class="sqBtnIco_7"></i>删除</a>';
							/* </sys:FlowFrmAth> */
                        }
                    }else if(ctrlKey==2){
                        if(rowdata.filePath){
                            h += '<a class="sq-button-hasicon" style="cursor:pointer;" onclick="modifyAudStsCd(event,' + rowdata.fileId +',1);"><i class="sqBtnIco_15"></i>验证通过</a>';
                            h += '<a class="sq-button-hasicon" style="cursor:pointer;" onclick="modifyAudStsCd(event,' + rowdata.fileId + ',2);"><i class="sqBtnIco_14"></i>验证不通过</a>';
                        }
                    }
                    return h;
                }
            },
            /* {display: '上传', name: 'uploadNm', width: 80,align: 'left', enabledSort: false,
                render:function(rowdata,rowindex,value){
                    var h='';
                    if(ctrlKey==1){
                    	<sys:FlowFrmAth preTaskIds="${preTaskIds}" athCd="addPrjFile" pInstId="${pInstId}">
                            h+='<span class="sq-button sq-button-round fileupload-button">上传<input type="file" id="fileup_'+rowdata.cfgCd+'_'+rowdata.cfgDtlCd+'" multiple name="fileup_'+rowdata.cfgCd+'_'+rowdata.cfgDtlCd+'"' +
                                    ' class="fileupload-input" onchange="onChangefile_multi(event,\''+rowdata.cfgCd+'\',\''+rowdata.cfgDtlCd+'\',\''+rowdata.orgCd+'\',1)"></span>';
						</sys:FlowFrmAth>
                    }
                    return h;
                }
            }, */
        ],
        root: 'rows',
        hideLoadButton : true,
        width: '100%',
        height: '100%',
        isScroll: false,
        rownumbers:true,  //显示序号
        checkbox: false,
        allowUnSelectRow:true,
        alternatingRow: false,
        frozen: false,
        usePager: false,
        onAfterShowData: function (){
            $('#odrPrdFileGrid').rowspan('datNm');
            $('#odrPrdFileGrid').rowspan('uploadNm');
        }
    });
}

function uploadFileByUrl(_url,_name){
	if(SQ.regs.img.test(_name)){
		//SQ.imgPreview(_url);
		//SQ.imgPreview(_url, true);
       window.__ImgSrc = _url;
       window.__ImgTit = _name;
       window.open('<%=path%>/project/prjbscinfo/imgWinOpen.do', '', 'location=yes, width=800, height=600');
	}else{
        window.open(_url);
	}
}
//修改资料的验证状态
function modifyAudStsCd(event,_fileId,_audStsCd){
    var wait_dialog;
    $.ajax({
        type: 'post',
        dataType: 'json',
        data: {'fileId':_fileId,'audStsCd':_audStsCd},
        url: '<%=path%>/project/prjFileInfo/modifyFileAudStsCd.do',
        beforeSend: function () {
            wait_dialog = $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waitting"});
        },
        success: function (msg) {
            wait_dialog.close();
            if (msg.success == 1) {
                //$.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                /* if(prjPrdDtlFileInfoGrid){
                	prjPrdDtlFileInfoGrid.reload();
                } */
                event.stopPropagation();
                var gridID = $(event.target).parents('.sq-grid').attr('ligeruiid');
                liger.get(gridID).reload();
            }else{
                $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
            }
        }
    });
}

//禁用
function disableFixedFiled(){
	disabledRgnProvCd();//禁用区域
	$("#selfTkDesc").setDisabled_ligerTextarea(true);
	if(liger.get("profitCd")){
		liger.get("profitCd").setDisabled(true);
	}
	$("#experience").setDisabled_ligerTextarea(true);
	if(liger.get("mainGoodsCd")){
		liger.get("mainGoodsCd").setDisabled(true);
	}
	if(liger.get("goods")){
		liger.get("goods").setDisabled(true);
	}
	$("#route").setDisabled_ligerTextarea(true);
	if(liger.get("goodsResCd")){
		liger.get("goodsResCd").setDisabled(true);
	}
	if(liger.get("settlementTypeCd")){
		liger.get("settlementTypeCd").setDisabled(true);
	}
	if(liger.get("driverInfo")){
		liger.get("driverInfo").setDisabled(true);
	}
	if(liger.get("secondPayResCd")){
		liger.get("secondPayResCd").setDisabled(true);
	}
	if(liger.get("isNew")){
		liger.get("isNew").setDisabled(true);
	}
	if(liger.get("processOpinionCd")){
		liger.get("processOpinionCd").setDisabled(true);
	}
	if(liger.get("cstMgrLvlCd")){
		liger.get("cstMgrLvlCd").setDisabled(true);
	}
	if(liger.get("localLiveTmCd")){
		liger.get("localLiveTmCd").setDisabled(true);
	}
	if(liger.get("riskCtrlLvlCd")){
		liger.get("riskCtrlLvlCd").setDisabled(true);
	}
	if(liger.get("firstPayResCd")){
		liger.get("firstPayResCd").setDisabled(true);
	}
	if(liger.get("isMeetPolicyCd")){
		liger.get("isMeetPolicyCd").setDisabled(true);
	}
	if(liger.get("goodsDisp")){
		liger.get("goodsDisp").setDisabled(true);
	}
	$("#otherInfo").setDisabled_ligerTextarea(true);
	$("#qualificationOpn").setDisabled_ligerTextarea(true);
	$("#infomationOpn").setDisabled_ligerTextarea(true);
	$("#schemeOpn").setDisabled_ligerTextarea(true);
	$("#riskOpn").setDisabled_ligerTextarea(true);
	$("#offLionContract").setDisabled_ligerTextarea(true);
	$("#pbcCreditInfo").setDisabled_ligerTextarea(true);
	$("#tripCreditInfo").setDisabled_ligerTextarea(true);
	$("#ownCreditInfo").setDisabled_ligerTextarea(true);
	if(liger.get("netIncome")){
		liger.get("netIncome").setDisabled(true);
	}
	if(liger.get("highEasonCharterdBus")){
		liger.get("highEasonCharterdBus").setDisabled(true);
	}
	if(liger.get("peakEasonCharterdBus")){
		liger.get("peakEasonCharterdBus").setDisabled(true);
	}
	if(liger.get("otherFeePct")){
		liger.get("otherFeePct").setDisabled(true);
	}
	if(liger.get("grossIncome")){
		liger.get("grossIncome").setDisabled(true);
	}
	if(liger.get("lnkCompId")){
		liger.get("lnkCompId").setDisabled(true);
	}
	if(liger.get("isOwnCensus")){
		liger.get("isOwnCensus").setDisabled(true);
	}
}
</script>
<style type="text/css">
.viewer-container{
	transform:scale(0.6);
	-webkit-transform:scale(0.6);
	-moz-transform:scale(0.6);
	-o-transform:scale(0.6);
	-ms-transform:scale(0.6);
}
</style>
</body>
</html>